package com.spider.moudle.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 言论实体类
 *
 * @author AntKun
 * @create 2017-12-20 14:53
 **/
public class SpeechBean extends BaseBean {


    /**
     * like_count : 赞成数
     * publish_user_id : 用户id
     * publish_user : 用户名
     * publish_user_photo : 用户头像
     * publish_user_jsonid : 用户的jsonid(对应着用户json信息的命名：平台名称（或者英文）_用户id)
     * txpath : 图片存放服务器(针对微信)
     * title : 标题
     * reply_count : 回复数
     * reply_nodes : jsonArray类型变量,结构和当前json结构一样
     * content : 去噪后的存文本内容
     * url : （论坛的URL）||（论坛回复的URL）||（新闻的URL）
     * reproduce_count : 转载数
     * ancestor_id : 祖先借点的ID（回复和回复的回复必填）
     * spider_time : 爬虫爬取时间
     * publish_time : 发布时间
     * parent_id : 父集ID（如果是回复就填，没有就不填）
     * like_nodes : jsonArray类型变量，里面的结构和当前json结构一样
     * img_urls : 图片urls,string数组类型
     * video_urls : 视频urls,string数组类型
     * id : 在平台中的言论ID（如果是回复的话，有就填，没有就不填）
     * is_pic : 是否包含图片(针对微信)
     * dislike_count : 反对数
     * read_count : 阅读量
     * area : {'country':'中国','province':'四川省',city:'成都市','lat':30.67,'lon':104.06}
     * reproduce_nodes : jsonArray类型变量,结构和当前json结构一样(转载人)
     */

    private int like_count;
    private String publish_user_id = "";
    private String publish_user = "";
    private String publish_user_photo = "";
    private String publish_user_jsonid = "";
    private String txpath = "";
    private String title = "";
    private int reply_count;
    private List<SpeechBean> reply_nodes = new ArrayList<>();
    private String content = "";
    private String url = "";
    private int reproduce_count;
    private String ancestor_id = "";
    private Date spider_time;
    private Date publish_time;
    private String parent_id = "";
    private List<UserBean> like_nodes = new ArrayList<>();
    private List<String> img_urls = new ArrayList<>();
    private List<String> video_urls = new ArrayList<>();
    private String id = "";
    private Boolean is_pic;
    private int dislike_count;
    private int read_count;
    private Area area;
    private List<UserBean> reproduce_nodes = new ArrayList<>();

    public int getLike_count() {
        return like_count;
    }

    public void setLike_count(int like_count) {
        this.like_count = like_count;
    }

    public String getPublish_user_id() {
        return publish_user_id;
    }

    public void setPublish_user_id(String publish_user_id) {
        this.publish_user_id = publish_user_id.trim();
    }

    public String getPublish_user() {
        return publish_user;
    }

    public void setPublish_user(String publish_user) {
        this.publish_user = publish_user.trim();
    }

    public String getPublish_user_photo() {
        return publish_user_photo;
    }

    public void setPublish_user_photo(String publish_user_photo) {
        this.publish_user_photo = publish_user_photo.trim();
    }

    public String getPublish_user_jsonid() {
        return publish_user_jsonid;
    }

    public void setPublish_user_jsonid(String publish__user_jsonid) {
        this.publish_user_jsonid = publish__user_jsonid.trim();
    }

    public String getTxpath() {
        return txpath;
    }

    public void setTxpath(String txpath) {
        this.txpath = txpath.trim();
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title.trim();
    }

    public int getReply_count() {
        return reply_count;
    }

    public void setReply_count(int reply_count) {
        this.reply_count = reply_count;
    }

    public List<SpeechBean> getReply_nodes() {
        return reply_nodes;
    }

    public void setReply_nodes(List<SpeechBean> reply_nodes) {
        this.reply_nodes = reply_nodes;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content.trim();
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url.trim();
    }

    public int getReproduce_count() {
        return reproduce_count;
    }

    public void setReproduce_count(int reproduce_count) {
        this.reproduce_count = reproduce_count;
    }

    public String getAncestor_id() {
        return ancestor_id;
    }

    public void setAncestor_id(String ancestor_id) {
        this.ancestor_id = ancestor_id.trim();
    }

    public Date getSpider_time() {
        return spider_time;
    }

    public void setSpider_time(Date spider_time) {
        this.spider_time = spider_time;
    }

    public Date getPublish_time() {
        return publish_time;
    }

    public void setPublish_time(Date publish_time) {
        this.publish_time = publish_time;
    }

    public String getParent_id() {
        return parent_id;
    }

    public void setParent_id(String parent_id) {
        if(parent_id != null) {
            this.parent_id = parent_id.trim();
        }

    }

    public List<UserBean> getLike_nodes() {
        return like_nodes;
    }

    public void setLike_nodes(List<UserBean> like_nodes) {
        this.like_nodes = like_nodes;
    }

    public List<String> getImg_urls() {
        return img_urls;
    }

    public void setImg_urls(List<String> img_urls) {
        this.img_urls = img_urls;
    }

    public List<String> getVideo_urls() {
        return video_urls;
    }

    public void setVideo_urls(List<String> video_urls) {
        this.video_urls = video_urls;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id.trim();
    }

    public Boolean getIs_pic() {
        return is_pic;
    }

    public void setIs_pic(Boolean is_pic) {
        this.is_pic = is_pic;
    }

    public int getDislike_count() {
        return dislike_count;
    }

    public void setDislike_count(int dislike_count) {
        this.dislike_count = dislike_count;
    }

    public int getRead_count() {
        return read_count;
    }

    public void setRead_count(int read_count) {
        this.read_count = read_count;
    }

    public Area getArea() {
        return area;
    }

    public void setArea(Area area) {
        this.area = area;
    }

    public List<UserBean> getReproduce_nodes() {
        return reproduce_nodes;
    }

    public void setReproduce_nodes(List<UserBean> reproduce_nodes) {
        this.reproduce_nodes = reproduce_nodes;
    }

    public SpeechBean() {
        this.spider_time = new Date();
    }
}
